<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>jqajax</title>
		<meta http-equiv="Access-Control-Allow-Origin" content="*" />
		<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.js" type="application/javascript"></script>
	</head>
	<script type="application/javascript">
			function shows(){				
				 // htmlobj=$.ajax({url:"http://www.osblog.cn/index.php",async:false});
				  //alert(htmlobj.responseText);				  
  				//$("#myDiv").html(htmlobj.responseText);
  				$('#myDiv').load("http://www.baidu.com");
			}
		$(document).ready(function(){
			function shows(){				
				  htmlobj=$.ajax({url:"http://www.osblog.cn",async:false});
				  alert(htmlobj.responseText);
  				//$("#myDiv").html(htmlobj.responseText);
			}
		}
				//					
		);
	</script>
	<input type="button" value="点击获取百度" onclick="shows()" />
	<div id="myDiv"></div>
	<body>
	</body>
</html>
